package com.note.simpleshop.module.goods.vo;

import com.fasterxml.jackson.annotation.JsonIgnore;
import com.note.simpleshop.entity.TbColumn;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

public class ColumnVo implements Serializable {
    private String id;
    private String name;
    private String logo;
    @JsonIgnore
    private int isDelete;
    private Integer sort;
    private List<GoodsVo> goodsList;

    public List<GoodsVo> getGoodsList() {
        return goodsList;
    }

    public void setGoodsList(List<GoodsVo> goodsList) {
        this.goodsList = goodsList;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getLogo() {
        return logo;
    }

    public void setLogo(String logo) {
        this.logo = logo;
    }

    public int getIsDelete() {
        return isDelete;
    }

    public void setIsDelete(int isDelete) {
        this.isDelete = isDelete;
    }

    public Integer getSort() {
        return sort;
    }

    public void setSort(Integer sort) {
        this.sort = sort;
    }

    public static ColumnVo copy(TbColumn tbColumn)
    {
        ColumnVo columnVo=new ColumnVo();
        columnVo.id=tbColumn.getId();
        columnVo.name=tbColumn.getLogo();
        columnVo.logo=tbColumn.getLogo();
        columnVo.isDelete=tbColumn.getIsDelete();
        columnVo.sort=tbColumn.getSort();
        columnVo.goodsList=new ArrayList<GoodsVo>();
        return columnVo;
    }

}
